<script setup>
import { inject } from 'vue';

const MessageBoxService = inject('MessageBoxService');
function showQeustion() {
    MessageBoxService.question('Are you sure you want to leave the page?', 'Click OK to leave, and you will lost the changes.');
}
</script>
<template>
    <f-button style="margin: 5px" :type="'primary'" @click="showQeustion"> 显示询问对话框 </f-button>
</template>
